package com.jiyun.model.information;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2024-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("zl_doctor")
@ApiModel(value="ZlDoctor对象", description="")
public class ZlDoctor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "医生姓名")
    private String doctorName;

    @ApiModelProperty(value = "医生头像")
    private String photo;

    @ApiModelProperty(value = "医生电话")
    private String phone;

    @ApiModelProperty(value = "角色外键（和角色中间表关联）")
    private Integer jid;

    @TableField(exist = false)
    @ApiModelProperty(value = "团队外键（zl_team）")
    private Integer tid;
    @TableField(exist = false)
    @ApiModelProperty(value = "机构外键（zl_instituion）")
    private Integer jgid;

    @ApiModelProperty(value = "标签外键（zl_lable）")
    private Integer bid;

    @ApiModelProperty(value = "状态，1表示启用，2表示禁用")
    private String status;

    @ApiModelProperty(value = "1：男、2：女")
    private Integer sex;

    @ApiModelProperty(value = "医生简介")
    private String intro;

    @ApiModelProperty(value = "医生擅长")
    private String shanchang;

    @ApiModelProperty(value = "签约人数")
    private Integer share;

    @ApiModelProperty(value = "医生评分")
    private Double score;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "创建人、新建的话是登录人")
    @TableField(exist = false)
    private String uname;

    @ApiModelProperty(value = "机构名")
    @TableField(exist = false)
    private String iname;

    @TableField(exist = false)
    @ApiModelProperty(value = "团队")
    private String tname;

    @TableField(exist = false)
    @ApiModelProperty(value = "标签")
    private String lname;

    @TableField(exist = false)
    @ApiModelProperty(value = "角色名字")
    private String rname;

    @TableField(exist = false)
    @ApiModelProperty(value = "状态")
    private Integer mstatus;

}
